<?php
namespace app\admin\validate;

use think\Validate;

class Articles extends Validate
{
    protected $rule = [
        'article_name' => 'require|length:4,50',
    ];

    protected $message = [
        'article_name.require'   => '文章标题不能为空',
        'article_name.length' => '文章标题4~25个字',
    ];
}